﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Share/MainMenu2.Master" AutoEventWireup="true" CodeBehind="fSecMatrix.aspx.cs" Inherits="MixScriptWeb.Member.fSecMatrix"  %>
<%@ Register Src="~/control/MixScriptTB.ascx" TagName="baseTextBox" TagPrefix="mix" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="padding-left: 10px;">
       
           <h2 class="jquery_tab"> <asp:Label ID="lblTitle" runat="server" Text="User Group" 
                   Font-Bold="True"></asp:Label>
           </h2>
           <br />
        <table style="width: 525px;" class="table-ui">
            <tr>
                <td style="width: 144px; ">
                    <label id="lbuser" for="txtUserID" class="tebel">
                        UserID</label>
                </td>
                <td style="width: 5px; ">
                    :
                </td>
                <td style="width: 753px; "><asp:DropDownList ID="ddlUser" runat="server" 
                        onselectedindexchanged="DropDownList1_SelectedIndexChanged" 
                        AutoPostBack="True">
                    </asp:DropDownList>
                    
                    

                </td>
                <td style="width: 127px; ">
                </td>
            </tr>
            <%--<tr>
                <td style="height: 26px; width: 196px;">
                    Vendor</td>
                <td style="width: 5px; height: 26px;">
                    :</td>
                <td style="height: 26px; width: 753px;">
                    <asp:TextBox ID="txtKeterangan" runat="server" Font-Bold="True"></asp:TextBox></td>
                <td style="width: 127px; height: 26px">
                </td>
            </tr>--%>
            <tr>
                <td style="width: 144px; ">
                    Group Menu</td>
                <td style="width: 5px; ">
                    &nbsp;</td>
                <td style="width: 753px; ">
                    <asp:DropDownList ID="ddlGroupMenu" runat="server" 
                        onselectedindexchanged="ddlGroupMenu_SelectedIndexChanged" 
                        AutoPostBack="True">
                    </asp:DropDownList>
                    
                    

                </td>
                <td style="width: 127px; ">
                    &nbsp;</td>
            </tr>
            </table>
        <br />
        <table style="width: 600px" class="table-ui" >
            <tr>
                <td style="height: 26px">
                    <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Save" 
                        Width="99px" OnClick="btnSave_Click" />
                </td>
                <td style="height: 26px">
                </td>
                <td style="height: 26px">
                    &nbsp;</td>
                <td style="height: 26px">
                </td>
                <td style="height: 26px">
                    &nbsp;</td>
                <td style="height: 26px">
                </td>
                <td style="height: 26px">
                    &nbsp;</td>
                <td style="height: 26px; width: 4px;">
                    &nbsp;</td>
                <td style="height: 26px">
                               &nbsp;</td>
            </tr>
        </table>
        <br />
                            <asp:GridView ID="gvdetail" runat="server"  Width="100%"  
               AllowPaging="True" CssClass="gridview"
                                AllowSorting="True" 
               OnPageIndexChanging="gvdetail_PageIndexChanging"
                                OnRowDataBound="gvdetail_RowDataBound"
                                AutoGenerateColumns="False" PageSize="25" 
               onsorting="gvdetail_Sorting">
                                <AlternatingRowStyle CssClass="alt" />
                                <Columns>
                                    <asp:TemplateField><HeaderTemplate>
                                        <asp:CheckBox ID=cbAll runat="server" OnCheckedChanged="cbAll_CheckedChanged" 
                                            AutoPostBack="True" /></HeaderTemplate>
                                        <EditItemTemplate>
                                            
                                            <asp:CheckBox ID="cbitem" runat="server"/></EditItemTemplate>
                                        <ItemTemplate>
                                        <asp:CheckBox ID="cbtick"  Checked='<%#Eval("tick").ToString()=="1" ? true : false %>'  runat="server" />
                                        <asp:HiddenField ID="hdmenu" Value='<%# Eval("nodeid") %>' runat="server" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8px" /></asp:TemplateField>

                                    <asp:BoundField DataField="modulname" HeaderText="Modul" />
                                    <asp:BoundField DataField="nodetext" HeaderText="Menu" />

                                </Columns>
                                <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                                <FooterStyle CssClass="ft" />
                                <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
                            </asp:GridView>
        <asp:Label ID="lblRowCount" runat="server" Font-Bold="True" Font-Size="X-Small"></asp:Label>
        <br />
        <div id="pnldetail"></div>
        <br />
        <br />
        </div>
</asp:Content>
